package cn.cdeden.knowledge.domain.dto;

//import io.swagger.annotations.ApiModelProperty;
import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
import cn.cdeden.knowledge.api.domain.vo.EnterpriseTemplateTreeVo;
import cn.cdeden.knowledge.domain.EnterpriseFilesTree;
import cn.cdeden.knowledge.domain.EnterpriseFolderTree;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
* @author GW
* @date 2023-03-27
*/
@Data
@AutoMappers({@AutoMapper(target = EnterpriseFolderTree.class),@AutoMapper(target = EnterpriseTemplateTreeVo.class)})
public class EnterpriseFolderTreeDto{
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "编号")
    private Long id;

//    @ApiModelProperty(value = "封面url")
    @Translation(type = TransConstant.OSS_ID_TO_URL,mapper = "url")
    private String url;
//    @ApiModelProperty(value = "父亲编号")
    private String parentId;

//    @ApiModelProperty(value = "文件编号")
    private Integer fileId;

//    @ApiModelProperty(value = "后缀名")
    private String suffix;

//    @ApiModelProperty(value = "名称")
    private String realName;

//    @ApiModelProperty(value = "上级路径")
    private String superiorsPath;

//    @ApiModelProperty(value = "路径")
    private String path;

//    @ApiModelProperty(value = "类型")
    private String type;

//    @ApiModelProperty(value = "储存表id")
    private String storageId;

//    @ApiModelProperty(value = "储存服务器类型")
    private String storageType;

//    @ApiModelProperty(value = "文件大小")
    private Long size;

//    @ApiModelProperty(value = "关连状态")
    private String linkingState;

    private String attention;

    private String collection;

    private String isLock;

    private String columnType;

//    @ApiModelProperty(value = "创建编号")
    private String createId;

//    @ApiModelProperty(value = "创建者")
    private String createBy;

    // @ApiModelProperty(value = "创建者名称")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME,mapper = "createBy")
    private String createName;

//    @ApiModelProperty(value = "创建日期")
    private Date createTime;

//    @ApiModelProperty(value = "更新编号")
    private String updateId;

//    @ApiModelProperty(value = "更新者")
    private String updateBy;//


//    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

//    @ApiModelProperty(value = "删除编号")
    private String deleteId;

//    @ApiModelProperty(value = "删除者")
    private String deleteBy;

//    @ApiModelProperty(value = "删除时间")
    private Date deleteTime;

    private String deleteType;

//    @ApiModelProperty(value = "版本")
    private String editionName;

//    @ApiModelProperty(value = "版本号")
    private String edition;

    private String fileEncode;

//    @ApiModelProperty(value = "文件的MD5")
    private String fileMd5;

    private String parentFile;

//    @ApiModelProperty(value = "模板描述")
    private String remark;

    private List<EnterpriseFolderTreeDto> folderTree;

    private List<EnterpriseFolderTreeDto> children = new ArrayList<>();
}
